<?php
require 'Controller.php';
require 'Home/Model/indexModel.php';

class indexController extends Controller{
    function __construct()
    {
        parent::__construct();
    }

    function getindex(){
        $uname = $_SESSION['user'];
        $h_model=new IndexModel();
        $h_data=$h_model->indexHotRent();
        $p_model=new IndexModel();
        $p_data=$p_model->indexHotSale();
        $f_data = $p_model->getflag($uname);
        require 'Home/View/index1.php';
    }

    function UserLogin(){
        require 'Home/View/userLogin.php';
    }

    function UserReg(){
        require 'Home/View/userReg.php';
    }
}
?>